package com.bawei.es.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author : zhangyu
 * @date 2023/11/15 21:06
 */
@Data
public class DocsQueryReq {


    @ApiModelProperty(value = "索引名称",required = true)
    @NotNull(message = "索引名称不能为空")
    private String indexName;

    @ApiModelProperty("全文检索关键字")
    private String keyword;

    @ApiModelProperty("分页参数")
    private DocsPageReq pageReq;

    @ApiModelProperty("排序参数")
    private DocsOrderReq docsOrderReq;


    @ApiModelProperty("检索字段")
    private List<String> queryFields;

    @ApiModelProperty("返回字段")
    private List<String> returnFields;

}
